package com.ziytek.web.citizen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.ziytek.web.citizen.constant.TableConstant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fenghx
 * @version v1.0
 * @className VoltageTable
 * @descripton 电池充电电流电压设备上送源数据表
 * @date 2023/6/13 17:52
 * <p>
 * 自增主键ID
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = TableConstant.TABLE_BASIC_DATA)
public class BasicDataTable {

    @TableId(type = IdType.AUTO)
    @IsKey
    @IsAutoIncrement
    @Column
    private Integer id;

    @Column(name = "createTime", comment = "创建时间")
    private Long createTime;

    /**
     * 机柜编号
     */
    @Column(comment = "cabinetNo")
    private Integer cabinetNo;
//
//    /**
//     * 充放电类型 0-放电 1-充电
//     */
//    @Column(comment = "chargeType")
//    private Integer chargeType;
//
//    /**
//     * 信息类型
//     */
//    @Column(comment = "dataType")
//    private String dataType;

    /**
     * 充电电池电流电压设备上送的原始数据内容(gzip压缩过的)
     */
    @Column(comment = "basicData")
    private byte[] basicData;

}
